package com.huqing.icu.protocol;

public enum SystemResponseCode {

    /**
     * 成功 : 2000000, 服务端内部异常 : 5000000, 未知错误 : 5000001, 系统参数无效:参数缺失 : 5000002,
     * 系统参数值无效:参数值无效 : 5000003, 系统维护 : 3020101
     */
    OK(2000000, "Ok"),
    INTERNAL_ERROR(5000000, "INTERNAL_ERROR"),
    UNKOWN_ERROR(5000001, "UNKOWN_ERROR"),
    PARAM_KEY_ILLEGAL(5000002, "PARAM_KEY_ILLEGAL"),
    PARAM_VALUE_ILLEGAL(5000003, "PARAM_VALUE_ILLEGAL"),
    SYSTEM_MAINTENCE(3020101, "SYSTEM_MAINTENCE"),
    OBJECT_NOT_EXIST(5000004, "OBJECT_NOT_EXIST"),
    OBJECT_EXIST(5000005, "OBJECT_EXIST"),
    ;

    private int code;

    private String msg;

    private SystemResponseCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
